<div style="margin-left: 40%" >
    <div class="row" >
        <form class="form-signin">
            <h2 class="form-signin-heading">用户注册</h2>
            <div class="input">
                <input type="text" ng-model="user.userName" name="userName" class="form-control" ng-change="userNamechange()" placeholder="请输入用户名(英文或数字)" required autofocus>
            </div>
            <div  class="input">
                <input type="password" ng-model="user.password" class="form-control" placeholder="请输入密码" required>
            </div>
            <div  class="input">
                <input type="password" ng-model='password_confirm' class="form-control" placeholder="请确认密码" required>
            </div>
            <div  class="input">
                <input type="tel"  ng-model="user.companyName" class="form-control" placeholder="公司名称" required>
            </div>
            <div  class="input">
                <input type="tel"  ng-model="user.xydm" class="form-control" placeholder="信用代码" required>
            </div>
            <div  class="input">
                <label>代理商</label>
                <select class="mui-h5" style="margin: auto;" ng-model="user.agentCompany">
                    <option value="">--请选择代理--</option>
                    <option ng-repeat="agent in agentList" value="{{agent.id}}">{{agent.agentCompany}}</option>
                </select>
            </div>
            <div  class="input">
                <label>营业执照</label>
                <input id='yyzz' name='yyzz' ng-model="user.yyzz" type="file" class="mui-input-clear mui-input" placeholder="请上传营业执照" readonly="true">
            </div>
            <div  class="input">
                <input type="tel" class="form-control" ng-model="user.realName" placeholder="法人" required>
            </div>
            <div  class="input">
                <input type="tel" class="form-control" ng-model="user.phone"  placeholder="请输入手机号" required>
            </div>
            <div  class="input">
                <input type="tel" ng-model="yzm" class="form-control" placeholder="验证码" required>
                    <span class="mui-btn mui-btn-success" ng-click="getYZM()" >
					    获取验证码
				    </span>
            </div>
            <div class="mui-input-row mui-checkbox mui-left agreement">
                <label><a href="#" ng-click="lookXy(xy)">《同意并阅读协议》</a></label>
                <input name="checkbox" value="" type="checkbox" checked="">
            </div>
            <button class="btn btn-lg btn-primary btn-block" type="button" ng-click="registerBtn()">注册</button>
        </form>
    </div>
</div>